package com.webside.advertisement.mapper;
 

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.webside.advertisement.model.AdPositionEntity;
import com.webside.advertisement.model.AdReleaseEntity;
import com.webside.advertisement.model.AdvertisementEntity;
import com.webside.base.basemapper.BaseMapper;
 
 

public interface AdReleaseMapper extends BaseMapper<AdReleaseEntity, Long> {
   
	//<!-- editUI查询 -->
  	public AdReleaseEntity findById(Long id);
    //<!-- 修改 -->
  	public int update(AdReleaseEntity advertisementEntity);
    //<!-- 刪除 -->
    public int deleteBatchById(List<Long> id);
    //<!-- 添加 -->
    public int insert(AdReleaseEntity advertisementEntity);
    //<!-- list查询 -->
  	public List<AdReleaseEntity> queryListByPage(Map<String, Object> parameter);
  //<!-- 修改状态 -->
  	public int updatestatus(AdReleaseEntity advertisementEntity);
//根据广告位ID查询
  	public List<HashMap<String, Object>> queryListByAdP(@Param("id")String id);
  	//查询广告位一天所用时间
  	public List<AdReleaseEntity> selectSubTime(@Param("date")String date,@Param("pCode")String pCode);
  	//查询一天一个广告位的所有广告
  	public List<AdReleaseEntity> queryListByAdPAnddate(@Param("code")String code,@Param("date1")String date1,@Param("date2")String date2,@Param("type")String type);
  	//审核通过
  	public int updatePass(List<Long> ids);
  	//查询具体时期的广告位的广告
  	//查询一天一个广告位的所有广告
  	public List<HashMap<String, Object>> queryListByAdRelease(@Param("code")String code,@Param("date1")String date1,@Param("date2")String date2,@Param("type")String type);
}